PAPER = paper
all:
	pdflatex tex/${PAPER}.tex
	bibtex ${PAPER}
	pdflatex tex/${PAPER}.tex
	pdflatex tex/${PAPER}.tex
	#dvips -t a4 -Ppdf -G0 -o ${PAPER}.ps ${PAPER}.dvi
	#ps2pdf -dPDFSETTINGS=/prepress \
	#-dCompatibilityLevel=1.4 \
	#-dAutoFilterColorImages=false \
	#-dAutoFilterGrayImages=false \
	#-dColorImageFilter=/FlateEncode \
	#-dGrayImageFilter=/FlateEncode \
	#-dMonoImageFilter=/FlateEncode \
	#-dDownsampleColorImages=false \
	#-dDownsampleGrayImages=false ${PAPER}.ps ${PAPER}.pdf
	
clean:
	rm -f *.bbl *.blg *.brf *.lbl *.log *.aux *.dvi $(PAPER).ps $(PAPER).pdf
